package com.github.catvod.spider.merge;

import java.util.Locale;

/* loaded from: classes.dex */
public final class AR {
    public static String V0(String str) {
        return h(str).trim();
    }

    public static String h(String str) {
        return str != null ? str.toLowerCase(Locale.ENGLISH) : "";
    }

    public static String j(String str, boolean z) {
        return z ? h(str) : V0(str);
    }
}
